#region Usings

using System;

#endregion

namespace KanbanBoard.Client.View.DragAndDrop {
    public class DropCommand {
        private readonly Delegate action;

        public DropCommand(Delegate action) {
            this.action = action;
        }

        public void Execute(object draggedItem) {
            try {
                action.DynamicInvoke(draggedItem);
            }
            catch {}
        }
    }
}